package cn.signalpha.modules.shop.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 商户扩展参数
 */
@Data
public class SellerDeliveryConfigVO implements Serializable{
	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "地址id")
	private Long addressId;
	@ApiModelProperty(value = "配送范围（公里）")
	private Double deliveryScope;
	@ApiModelProperty(value = "起送价")
	private Double minPrice;
	@ApiModelProperty(value = "配送价格")
	private Double deliveryPrice;

	@ApiModelProperty(value = "是否开启自动配送")
	private Integer isOpenAuto;
	@ApiModelProperty(value = "是否开启送达功能")
	private Integer isOpenTiming;
	@ApiModelProperty(value = "可配送时间")
	private List<TimeVO> timeList;
	@ApiModelProperty(value = "买家提前下单时间：1无需提前 2提前")
	private Integer advanceType;
	@ApiModelProperty(value = "买家提前下单时间值")
	private Integer advanceValue;
	@ApiModelProperty(value = "买家提前下单时间单位：1天 2小时 3分钟")
	private Integer advanceUnit;

	@ApiModelProperty(value = "第三方门店编号，前端不用传")
	private String shopId;
	@ApiModelProperty(value = "第三方门店的请求唯一识别码，前端不用传")
	private String openId;

	@Data
	public static class TimeVO implements Serializable {
		private static final long serialVersionUID = 1L;
		@ApiModelProperty(value = "开始时间：mm:ss")
		private String beginTime;
		@ApiModelProperty(value = "结束时间：mm:ss")
		private String endTime;
	}

}
